package com.homework.test3;

import java.util.Scanner;

public class Demo1 {

    public String M1(double a){
        String str1 = "不打折";
        String str2 = "打9.5折";
        String str3 = "不8.5折";
        if (a<100){
            return str1;
        }else if (a>=100&&a<=199){
            return str2;
        }else {
            return str3;
        }

    }

    public static void main(String[] args) {
        Demo1 demo1 = new Demo1();
        System.out.println("输入商品总价");
        double money = new Scanner(System.in).nextDouble();
        String s = demo1.M1(money);

        System.out.println(s);
    }
}
